package com.beyondsoft.sabg.edu.service;

import com.beyondsoft.sabg.edu.model.dto.DocumentOperationRequestDto;
import com.beyondsoft.sabg.edu.model.vo.AiMiaoBiAuditResultVO;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

/**
 * 阿里云妙笔服务接口
 */
public interface AiMiaoBiService {

    /**
     * 智能写作 - 流式返回
     */
    SseEmitter runWritingStream(DocumentOperationRequestDto request) throws Exception;

    /**
     * 续写内容 - 流式返回
     */
    SseEmitter runContinueContentStream(DocumentOperationRequestDto request) throws Exception;

    /**
     * 文本润色 - 流式返回
     */
    SseEmitter runTextPolishingStream(DocumentOperationRequestDto request) throws Exception;

    /**
     * 提交智能审查任务
     */
    String submitSmartAudit(DocumentOperationRequestDto request) throws Exception;

    /**
     * 获取智能审查结果
     */
    AiMiaoBiAuditResultVO getSmartAuditResult(String taskId) throws Exception;

    /**
     * 智能审查（同步方法）
     */
    AiMiaoBiAuditResultVO smartAudit(DocumentOperationRequestDto request) throws Exception;
} 